package com.itzhigui.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 页面跳转的控制器
 */
@Controller
@Slf4j
public class PageController {
    @GetMapping(value = "/{pageName}.html")
    public String index(
            @PathVariable("pageName") String pageName
    ) {
        return pageName;
    }
}
